__author__ = 'Jessica'

from PyQt4.QtCore import *
from PyQt4.QtGui import *

import IGUBocadillo

class tiendaBocadillos(QMainWindow):
    def __init__(self):
        QMainWindow.__init__(self)
        self.ventana = IGUBocadillo.Ui_IGUBocadillo()
        self.ventana.setupUi(self)
        self.connect(self.ventana.Bcalcular,SIGNAL("clicked()"),self.fCalcular)

    def fCalcular(self):
        self.ventana.lcdTotal.display(
            self.ventana.tNBocadillo.value()*1.50 +
            self.ventana.tNRefresco.value()*1.20 +
            self.ventana.tNCerveza.value()*1.00
        )

if __name__ == "__main__":
    import sys
    app = QApplication(sys.argv)
    interfaz = tiendaBocadillos()
    interfaz.show()
    sys.exit(app.exec_())